package com.clusterswisdom.horn.api.tmall.action.alipay;

import com.clusterswisdom.horn.api.ioc.HornResponse;
import com.clusterswisdom.horn.api.ioc.ResponseProcessor;
import com.clusterswisdom.horn.api.ioc.api.ResponseConfig;
import com.clusterswisdom.horn.api.tmall.action.alipay.pushtrade.PushOrderTrade;
import com.clusterswisdom.horn.api.tmall.action.alipay.pushtrade.PushTotalTrade;

public class GetUserTradeResponseProcessor implements ResponseProcessor {

	private PushTotalTrade pushTotalTrade = new PushTotalTrade();
	
	private PushOrderTrade pushOrderTrade = new PushOrderTrade();
	
	@Override
	public Object process(ResponseConfig config, HornResponse response) throws Exception {
		pushTotalTrade.pushTrade(response);
		pushOrderTrade.pushData(response);
		
		return null;
	}
}
